Repository navigation
ci(scripts): run update-nixpkgs-inputs contract tests in CI + cover 127 fallback (#603) - #3771
Merged
Merged
Conversation
…he 127 fallback (#603)
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 47 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Closes the CI gap in #603 (queue task 4843):
scripts-testworkflow (.github/workflows/scripts-test.yml): runs the update-nixpkgs-inputs contract tests — the exact discover command from the test file's docstring — on Python 3.12/3.14, triggered on push-to-main and on PRs that touch either copy of the scripts (scripts/orpkgs/id/scripts/), the test file, or the workflow itself. Concurrency follows the research-workflow pattern (push runs keyed by run_id, PR runs per-ref).ScriptTreegains aninterpreter_missingmode — nouvstub and a uv-free PATH, so the.pyshebang (env -S uv run --script) fails 127 for real, with apython3shim (→ the running interpreter) keeping the wrapper's fallback hermetic on hosts whose python3 lives outside/usr/bin:/bin. NewTestWrapperContractcase, applied to both copies like every other case: fallback runs the update exactly once and propagates the genuine failure (exit 1, onenixcall).Until now the only CI touching
scripts/testswas research-workflow.yml, whose discover pattern (test_*workflow*.py) structurally excludes this file — the #598 exit-code contract (failed updates exit 1; the wrapper never re-runs after a genuine failure) had no automated guard despite the tests existing since #3021.Existing tests are untouched apart from the additive harness knob and the new case.
Need help on this PR? Tag
@codesmith-botwith what you need.